package cn.dankal.flyaudio.adapter;

import android.view.View;
import android.view.ViewGroup;

import cn.dankal.basiclib.base.recyclerview.BaseRecyclerViewAdapter;
import cn.dankal.basiclib.base.recyclerview.BaseRecyclerViewHolder;
import cn.dankal.flyaudio.R;
import cn.dankal.flyaudio.database.FriendRecommendEntry;

public class GroupAdapter extends BaseRecyclerViewAdapter<FriendRecommendEntry> {
    @Override
    protected int getLayoutResId(int viewType) {
        return R.layout.item_contract_person;
    }

    @Override
    protected BaseRecyclerViewHolder getViewHolder(ViewGroup parent, View rootView, int viewType) {
        return new ViewHolder(rootView);
    }

    public class ViewHolder extends BaseRecyclerViewHolder<FriendRecommendEntry>{

        public ViewHolder(View itemView) {
            super(itemView);
        }

        @Override
        public void onBindData(FriendRecommendEntry data, int position) {
            setText(R.id.tv_name,data.nickName);
        }
    }
}
